/* Copyright 2013 Google Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//   http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
*/
/**
 * Defines the styles that are common throughout the entire UI.
 */

body {
  border: none;
  color: #222;
  font-family: arial, sans-serif;
  font-size: .8125em;
  line-height: 1.38461538;
  margin: 0;
  overflow-x: hidden;
}

button {
  background-color: #357ae8;
  background-image: -webkit-linear-gradient(top, #4d90fe, #4787ed);
  border: 1px solid #2f5bb7;
  border-radius: 2px;
  -webkit-border-radius: 2px;
  color: #fff;
  cursor: default;
  display: inline-block;
  font-size: 11px;
  font-weight: bold;
  height: 27px;
  margin: 10px 12px 0 2px;
  min-width: 100px;
  padding: 6px 8px 8px 8px;
  text-align: center;
  vertical-align: top;
}

button:hover {
  border-color: #2f5bb7;
  box-shadow: inner 0 1px 1px rgba(0, 0, 0, 0.1);
  -webkit-box-shadow: inner 0 1px 1px rgba(0, 0, 0, 0.1);
}

button:disabled {
  color: graytext;
}

button.back,
button.cancel,
button.options,
button.save {
  background-color: whitesmoke;
  background-image: -webkit-linear-gradient(top, #f5f5f5, #f1f1f1);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #444;
}

button.back:hover,
button.cancel:hover,
button.options:hover,
button.save:hover {
  border-color: #c6c6c6;
}

button.back {
  min-width: inherit;
  padding: 0;
  width: 40px;
}

button.back > img {
  margin-top: 2px;
  opacity: 0.6;
}

#pgpBody {
  padding: 0 8px;
}

#pgpHead {
  background: #f5f5f5;
  border: solid #ebebeb;
  border-width: 0 0 1px;
  margin-bottom: 5px;
  padding: 1px 0;
  width: 100%;
  z-index: 60;
}

#pgpHead > div {
   padding: 0 15px;
}

#pgpHead h1 {
  color: #dd4b39;
  font-size: 1.53846154em;
  font-weight: normal;
}

#callbackDialog > div,
.overlayDialog {
  background-color: white;
  border: 1px solid #acacac;
  border-radius: 5px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  padding: 10px;
  position: absolute;
}

#callbackDialog > div {
  left: 45px;
  top: 60px;
  width: 550px;
  max-height: 75%;
  overflow-y: auto;
}

#callbackDialog input[type="password"],
#callbackDialog input[type="text"] {
  border: 1px solid #acacac;
  margin: 5px 0;
  width: 540px;
}

.overlayDialog .modal-dialog-title {
  background: inherit;
}

input {
  border: 1px solid #acacac;
  margin: 0;
  padding: 3px;
}

input:hover,
input:focus {
  border: 1px solid #0c0c0c;
  outline: none;
  padding: 3px;
}

.hidden {
  display: none;
}

.transparent {
  opacity: 0.4;
}

.invisible {
  visibility: hidden;
}

.key-meta > * {
  display: inline-block;
}

.key-meta > input[type="checkbox"] {
  margin-right: 10px;
  vertical-align: middle;
}

.key-type-description {
  display: inline-block;
  min-width: 140px;
}

.key-fingerprint {
  font-family: monospace;
  white-space: pre;
}

.keyring-backup-window {
  text-align: center;
  width: 300px;
}

.keyring-backup-window table {
  border-collapse: collapse;
  border-style: hidden;
  margin: auto;
  table-layout: fixed;
  width: 100%;
  font-size: 1.2em;
  font-weight: bold;
}

.keyring-backup-window td {
  border: 1px solid black;
  padding: 5px;
}

.keyring-backup-window span {
  color: red;
  font-size: .9em;
  font-weight: bold;
}

.keyring-restore-input,
.keyring-restore-input:hover,
.keyring-restore-input:focus {
  width: 100%;
  padding: 0;
  border: none;
  text-align: center;
  background: none;
  outline: none;
  font-size: 1.2em;
  font-weight: bold;
}
